hysop.backend.host.host_operator module

Abstract class providing a common interface to all discrete operators working on the Host backend.

  • HostOperator is an abstract class

    used to provide a common interface to all discrete operators working with the opencl backend.

class hysop.backend.host.host_operator.HostOperator(cl_env=None, **kwds)[source]

Bases: HostOperatorBase

Abstract class for discrete operators working on cpu. HostOperator extra cl_env keyword parameter and enforces HOST backend.

Create the common attributes of all host operators.

All input and output variable topologies should be of kind Backend.HOST and share the same HostEnvironment.

classmethod supported_backends()[source]

Return the backends that this operator’s topologies can support.

class hysop.backend.host.host_operator.HostOperatorBase(cl_env=None, **kwds)[source]

Bases: ComputationalGraphOperator

Abstract class for discrete operators working on cpu. HostOperatorBase ignore the extra cl_env keyword parameter.

Create the common attributes of all host operators.

All input and output variable topologies should be of kind Backend.HOST and share the same HostEnvironment.

class hysop.backend.host.host_operator.OpenClMappable(cl_env=None, mpi_params=None, enable_opencl_host_buffer_mapping=False, **kwds)[source]

Bases: object

Extend host operator capabilities to work on mapped opencl buffers

build_object_getter(key)[source]
property cl_env
create_topology_descriptors()[source]
property enable_opencl_host_buffer_mapping
get_mapped_object(key)[source]
map_objects(queue, is_blocking)[source]
map_objects_to_host(queue=None, is_blocking=True)[source]
register_data_getter(get_key, obj_key, getter)[source]
register_mappable_object(key, obj, flags)[source]
setup(**kwds)[source]
classmethod supported_backends()[source]
unmap_objects(force=False)[source]
class hysop.backend.host.host_operator.OpenClMappedMemoryObjectGetter(obj, evt, **kwds)[source]

Bases: object

property evt